using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class hr_employee_allawenceMap : EntityTypeConfiguration<hr_employee_allawence>
    {
        public hr_employee_allawenceMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.Note)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("hr_employee_allawence");
            this.Property(t => t.employee_id).HasColumnName("employee_id");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.Amount).HasColumnName("Amount");
            this.Property(t => t.Note).HasColumnName("Note");
            this.Property(t => t.ID2).HasColumnName("ID2");
        }
    }
}
